Skip to content

Add explicit test for duplicate keys in parse (last value wins)#931

Merged
motdotla merged 1 commit into
motdotla:masterfrom
codehassoul:test-duplicate-key-parse
Feb 12, 2026
Merged

Add explicit test for duplicate keys in parse (last value wins)#931
motdotla merged 1 commit into
motdotla:masterfrom
codehassoul:test-duplicate-key-parse

Conversation

@codehassoul
Copy link
Copy Markdown
Contributor

Adds an explicit test to document behavior when duplicate keys
appear within a single .env file. Currently, the last occurrence
wins due to object assignment order. This test formalizes that
behavior as part of the parse contract.

@motdotla
Copy link
Copy Markdown
Owner

great contribution. thank you for this!

@motdotla motdotla merged commit 477a1ff into motdotla:master Feb 12, 2026
5 checks passed
@codehassoul codehassoul deleted the test-duplicate-key-parse branch February 12, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants